package vcp.enums;

import vcp.enums.utility.EnumReverser;
import vcp.enums.utility.EnumReverser.IEnumReverser;
/**
 * 
 * @author VCP team
 *<p> subscription type enum class </p>
 */
public enum SubscriptionType implements IEnumReverser
{
	ONE_TIME_USE ( "One Time Use Customer" ),
	ORDER_AHEAD ( "Order Ahead Customer" ),
	CASUAL_SUBSCRIBER ( "Casual Subscriber" ),
	FULL_SUBSCRIBER ( "Full Subscriber" );
	private String type;
	/**
	 * sets type
	 * @param type
	 */
	private SubscriptionType ( String type )
	{
		this.type = type;
	}

	@Override
	public String toString ()
	{
		return this.type;
	}
	/**
	 * converts type to enum per key
	 * @param key
	 * @return enum
	 */
	public static SubscriptionType convert ( String key )
	{
		return EnumReverser.convert(SubscriptionType.class, key);
	}
}
